POV-Ray : Newsgroups : povray.newusers : Simple question : Re: Simple question Server Time
5 Oct 2024 18:24:58 EDT (-0400)
  Re: Simple question  
From: clipka
Date: 8 Oct 2009 13:41:51
Message: <4ace245f@news.povray.org>
Chris B schrieb:

> I don't know the POV source, d'you think that would be a big 
> investment/change?  Is the JPEG compression just a standard codec 
> library call at the end of the render?

I... um.... well, I guess it is.

(*browses though the code*)

Ehm... yup - the change would be minimal indeed... unless you were 
hoping for an effort lower than zero :-)

Fun facts to know: There already /is/ a JPEG compression quality 
parameter in POV-Ray, at least with 3.7.0.beta.34. Setting the .ini file 
parameter "Compression" to any integer value from 2 to 100 should do the 
job. Theoretically. Didn't test, just looked at the code.


The parameter is apparently intended to be format-specific; for JPEG, 
values 0 (default) and 1 are short-circuited to produce a fairly 
high-quality image, while any other value in the range of 2 to 100 is 
passsed to the JPEG library as the encoding quality parameter (2 = poor, 
100 = maximum quality). Values lower than 0 or higher than 100 are 
clipped to the 0..100 range.

Other file formats currently don't use the Compression parameter.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.